package com.QSystem.mapper;

import com.QSystem.pojo.Choice;
import com.QSystem.pojo.Survey;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ChoiceMapper {

    //根据titid获取所有choice
    List<Choice> queryByTitid(Integer titId);

    void add(Choice choice);
    void delete(Integer titId);


    List<Survey> getAllChoice();
}
